<?php
require_once '../config/config.php';
require_once '../config/common.php';
//$user = checksession();
$conn = new mysqli(HOST, USER, PASSWORD, DATABASE);
if ($conn->connect_errno) {
    die('数据库连接失败' . $conn->connect_error);
}
$stmt = $conn->prepare('select * from info_list where id=1');
$stmt->execute();
$stmt->bind_result($id, $about,$contact);
$stmt->fetch();
?>
<!DOCTYPE html>

<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <table border="1">
            <tr>
                <td>关于我们</td>
                <td><?php echo $about;?></td>
                <td><a href="infoupdate.php?col=about">修改</a></td>
            </tr>
             <tr>
                <td>联系我们</td>
                <td><?php echo $contact;?></td>
                <td><a href="infoupdate.php?col=contact">修改</a></td>
            </tr>
        </table>
        
    </body>
</html>
